package com.dcm.common.vo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author pengrongsheng
 **/
@Data
public class CommonResponse<T> implements Serializable {
    /**
     * 业务状态码 0成功 -1失败
     */
    private Integer code;
    /**
     * 业务描述
     */
    private String message;
    /**
     * 要进行处理的结果
     */
    private T data;


    public CommonResponse() {
    }

    public CommonResponse(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public CommonResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
